package com.caifu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.caifu.pojo.CDevice;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 设备信息表 服务类
 * </p>
 *
 * @author tww
 * @since 2020-12-10
 */
public interface CDeviceService extends IService<CDevice> {

    /**
     *
     * @param map
     * @return
     * @throws Exception
     */
    List<Map<String, Object>> listDevice(Map map) throws Exception;

    /**
     *
     * @param map
     * @return
     * @throws Exception
     */
    List<Map<String, Object>> listOrgDevice(Map map) throws Exception;

    /**
     *
     * @param map
     * @return
     * @throws Exception
     */
    List<Map<String, Object>> listDeptDevice(Map map) throws Exception;

    /**
     *
     * @param device
     * @return
     * @throws Exception
     */
    Map addDeviceInfo(CDevice device) throws Exception;

    /**
     *
     * @param id
     * @return
     * @throws Exception
     */
    CDevice getDeviceInfo(int id) throws Exception;

    /**
     *
     * @param device
     * @return
     * @throws Exception
     */
    Map editDeviceInfo(CDevice device) throws Exception;

    /**
     *
     * @return
     * @throws Exception
     */
    int countDevice(Map map) throws Exception;

    /**
     *
     * @param map
     * @return
     * @throws Exception
     */
    int countOrgDevice(Map map) throws Exception;

    /**
     *
     * @param map
     * @return
     * @throws Exception
     */
    int countDeptDevice(Map map) throws Exception;

    /**
     *
     * @param map
     * @return
     * @throws Exception
     */
    List<Map<String, Object>> getUserList(Map map) throws Exception;

    /**
     *
     * @param map
     * @return
     * @throws Exception
     */
    int countUserList(Map map) throws Exception;

    /**
     *
     * @param id
     * @return
     * @throws Exception
     */
    Map delDeviceInfo(int id) throws Exception;
}
